package com.designpattern.structure.adapter.newadapter;

import com.designpattern.structure.adapter.classadapter.SDCard;

/**
 * @author Administration
 * @date 2021/10/15 - 16:09 - 星期五
 * @project lambda
 * @package com.designpattern.structure.adapter.classadapter
 * @by 晨
 */
public class Computer {

    public String readSD (SDCard sdCard) {
        if (sdCard == null) {
            throw new NullPointerException("sd card null");
        }
        return sdCard.readSD();
    }
}
